{template header.html}
<script type="text/javascript">
function dr_test() {
	$.ajax({
		type: "GET",
		url: "{SITE_URL}test/",
		contentType: "application/json; charset=utf-8",
		dataType: "text",
		success: function (data) {
			alert(data);
		},
		error: function (msg) {
			alert('服务器不支持伪静态，首先需要确定服务器支持rewrite模块并开启了，其次需要正确配置上面的方法');
		}
	});
}
function dr_todo() {
	$("#dr_result").html("<img src='{SITE_URL}dayrui/statics/images/loading.gif'>");
	$.ajax({
		type: "GET",
		url: "{dr_url('route/todo')}",
		contentType: "application/json; charset=utf-8",
		dataType: "text",
		success: function (data) {
			$("#dr_result").html(data);
		},
		error: function (msg) {
			alert(msg);
		}
	});
}
</script>
<style type="text/css">
#dr_result td {
	height:22px !important;
	line-height:22px !important;
	padding:0;
	margin:0;
}
</style>
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		<a class="on" href="{dr_url('route/index')}"><em>{lang('html-503')}</em></a>
	</div>
	<div class="bk10"></div>
	<div class="explain-col">
        {dr_lang('html-504', $name, $note)}
        {if $code}
        <li style="padding:5px 0;"><textarea name="" style="width:90%; height:{php echo $count * 17;}px;">{$code}</textarea></li>
        {/if}
        <li>生成规则文件：<font color=blue>所有目录下的</font>/config/rewrite.php（系统生成的规则文件，每次生成规则时会覆盖原有规则）。</li>
        <li>路由规则文件：<font color=blue>所有目录下的</font>/config/routes.php（支持自定义配置路由，要确保不能与生成的规则有冲突）。</li>
        <li><b style="color:red">如果发生页面指向错误，可以调整上面文件中的规则顺序；越靠前的规则优先级越高。</b></li>
        <li>&nbsp;</li>
        <li>
        <input type="button" class="button" value="{lang('html-505')}" name="option" onClick="dr_test()" />
        <input type="button" class="button" value="{lang('html-503')}" name="option" onClick="dr_todo()" />
        </li>
	</div>
	<div class="bk10"></div>
	<div class="table-list">
		<table width="100%" id="dr_result">
		</table>
	</div>
</div>
{template footer.html}